package com.crm.service;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.crm.dao.ContactnoteDao;
import com.crm.pojo.Contactnote;

@Transactional
public class ContactnoteService {
	private ContactnoteDao contactnoteDao;

	public void setContactnoteDao(ContactnoteDao contactnoteDao) {
		this.contactnoteDao = contactnoteDao;
	}

	public void save(Contactnote note) {
		contactnoteDao.save(note);
	}

	public List<Contactnote> FindByFid(String id) {
		return contactnoteDao.findBy("fid", id);
	}

	public void del(Contactnote note) {
		contactnoteDao.del(note);
	}

	public Contactnote get(String id) {
		return contactnoteDao.findByUnique("id", id);
	}

	
	
}
